## 选择基础镜像
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17
# FROM openjdk:17-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY modbus-tool.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]